package com.zhouwenze.qr.frame;

import java.awt.Graphics;
import java.awt.Image;

import javax.swing.JPanel;

public class ImagePane extends JPanel {

	private static final long serialVersionUID = -1148888758399179522L;

	private Image img = null;

	public void setImage(Image img) {
		this.img = img;
	}

	public void paintComponent(Graphics g) {
		super.paintComponent(g);
		g.drawImage(img, 16, 30, 300, 300, this);
	}
}
